package com.shi.my_stream;

import java.util.ArrayList;
import java.util.Collections;

public class Demo03 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"a","b","c","d","e");

        list.stream().forEach(s->System.out.println(s));
        list.stream().forEach(System.out::println);
    }
}
